using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net;


/// <summary>
/// Summary description for ProcessRequest
/// </summary> 
/// 
namespace WhoIs
{
    public class ProcessRequest
    {
        public static string GetServerType(string domainName)
        {

            HttpWebRequest request;
            HttpWebResponse response;
            try
            {
                request = (HttpWebRequest)WebRequest.Create(domainName);
                response = (HttpWebResponse)request.GetResponse();
                response.Close();
                return response.Server;
            }
            catch (Exception ex)
            {
           
                return ex.Message;
            }            
        }
    }
}
